package com.sxhuayuan.parking.exception;

import com.sxhuayuan.parking.compenent.web.RespMessage.Status;

/**
 * 自定义 RuntimeException 类，此异常时显示错误页面
 */

public class ViewException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private Status status;

	public ViewException(String err) {
		this(Status.ERROR, err);
	}

	public ViewException(Status status, String err) {
		super(err);
		this.status = status;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}
}
